package model

import uuid "github.com/satori/go.uuid"

type User struct {
	UserId   uuid.UUID `json:"userId" form:"userId" gorm:"type:varchar(100);not null;primary_key" `
	UserName string    `json:"username" form:"username" gorm:"type:varchar(255)not null" binding:"required"`
	PassWord string    `json:"password" form:"password" gorm:"type:varchar(255);not null" binding:"required"`
	Sex      string    `json:"sex" form:"sex" gorm:"type:varchar(10)"`
	Email    string    `json:"email" form:"email" gorm:"type:varchar(50)" binding:"omitempty,email"`
}
